import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';

class CYTextSpan extends TextSpan {
  CYTextSpan.link(
    title, {
    Color color,
    VoidCallback onTap,
  }) : super(
    text: title,
    style: TextStyle(
      color: color
    ),
    recognizer: TapGestureRecognizer()..onTap = onTap,
  );
}